﻿using System;

namespace SharpObservation
{
    /// <summary>
    /// Occurs when a generic type argument is inappropriate for the generic definition type it is used with.
    /// </summary>
    [Serializable]
    public class GenericArgumentException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GenericArgumentException"/> class.
        /// </summary>
        public GenericArgumentException()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="GenericArgumentException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public GenericArgumentException(string message)
            : base(message)
        {
        }
    }
}